import request from '@/utils/request'

// 查询健步走队伍列表
export function listWorkTeam(query) {
  return request({
    url: '/applet/workTeam/list',
    method: 'get',
    params: query
  })
}

// 查询健步走队伍详细
export function getWorkTeam(id) {
  return request({
    url: '/applet/workTeam/' + id,
    method: 'get'
  })
}

// 新增健步走队伍
export function addWorkTeam(data) {
  return request({
    url: '/applet/workTeam',
    method: 'post',
    data: data
  })
}

// 修改健步走队伍
export function updateWorkTeam(data) {
  return request({
    url: '/applet/workTeam',
    method: 'put',
    data: data
  })
}

// 删除健步走队伍
export function delWorkTeam(id) {
  return request({
    url: '/applet/workTeam/' + id,
    method: 'delete'
  })
}
